package com.jumi.microservice.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jumi.microservice.common.base.dto.ResponseResult;
import com.jumi.microservice.service.IJmRealnameAuthenticationLogService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户实名认证申请日志 前端控制器
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-07-14
 */
@RestController
@RequestMapping("/jm-realname-authentication-log")
@Api(value="用户实名认证记录",tags={"用户实名认证记录接口"})
public class JmRealnameAuthenticationLogController {
    @Autowired
    IJmRealnameAuthenticationLogService logService;


    @GetMapping("/getList")
    public ResponseResult getList(@RequestParam("uid") Integer uid){
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("uid",uid);
        wrapper.orderByDesc("id");
        return ResponseResult.success(logService.list(wrapper));
    }

}
